package com.android.test.jnidemo;

import android.util.Log;

import com.yy.ttmodule.manager.ControlManager;

public class AudioFrame {

    static String TAG = "AudioFrame";

    public static void TtReceiveVoiceByteFromJNI(int len, byte[] data){
        //反射语音数据byte

        //Log.d(TAG,"TtReceiveVoiceByteFromJNI len:" + len);
        //for(int k = 0; k < len; k++){
            //Log.d(TAG,"TtReceiveVoiceByteFromJNI data:" + data[k]);
        //}
        ControlManager.getInstance().ackDownlinkPcmData(data);

    }

    public static void TtReceiveVoiceShortFromJNI(int len, short[] data){
        //反射语音数据byte
        Log.d(TAG,"TtReceiveVoiceShortFromJNI");
        for(int k = 0; k < len; k++){
            Log.d(TAG,"TtReceiveVoiceShortFromJNI data:" + data[k]);
        }
    }

}
